package org.qiuqiu.service.impl;

import java.util.List;

import org.qiuqiu.dao.ReplyMapper;
import org.qiuqiu.service.ReplyService;
import org.qiuqiu.vo.PaginationVO;
import org.qiuqiu.vo.Reply;
import org.qiuqiu.vo.ReplyExample;
import org.qiuqiu.vo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ReplyServiceImpl implements ReplyService{
	@Autowired
   private ReplyMapper replymapper;
	
	public int countByExample(ReplyExample example) {
	
		return replymapper.countByExample(example);
	}

	public int deleteByExample(ReplyExample example) {
	
		return 0;
	}

	public int deleteByPrimaryKey(Integer replyid) {
	
		return 0;
	}

	public int insert(Reply record) {
		
		return replymapper.insert(record);
	}

	public int insertSelective(Reply record) {
		
		return replymapper.insertSelective(record);
	}

	public List<Reply> selectByExample(ReplyExample example) {
	
		return null;
	}

	public Reply selectByPrimaryKey(Integer replyid) {
	
		return null;
	}

	public int updateByExampleSelective(Reply record, ReplyExample example) {
		
		return 0;
	}

	public int updateByExample(Reply record, ReplyExample example) {
		
		return 0;
	}

	public int updateByPrimaryKeySelective(Reply record) {
	
		return 0;
	}

	public int updateByPrimaryKey(Reply record) {
		
		return 0;
	}

	public List<Reply> selectPageByAll(PaginationVO page, Reply reply) {
		
		return replymapper.selectPageByAll(page, reply);
	}


	/* (non-Javadoc)
	 * @see org.qiuqiu.service.ReplyService#findAllReplyByUser(org.qiuqiu.vo.User)
	 */
	public List<Reply> findAllReplyByUser(User user) {
		// TODO Auto-generated method stub
		return replymapper.findAllReplyByUser(user);
	}

	/* (non-Javadoc)
	 * @see org.qiuqiu.service.ReplyService#findallReplyBypostId(java.lang.Integer, org.qiuqiu.vo.PaginationVO)
	 */
	public List<Reply> findallReplyBypostId(Integer id, PaginationVO page) {
		
		return replymapper.findallReplyBypostId(id, page);
	}

	/* (non-Javadoc)
	 * @see org.qiuqiu.service.ReplyService#totalBypostId(java.lang.Integer)
	 */
	public int totalBypostId(Integer id) {
		
		return replymapper.totalBypostId(id);
	}
 
}
